package com.lizard.schedule.net.http.request.bean.ScheduleSync;

import com.lizard.schedule.net.http.consts.HttpConst;
import com.lizard.schedule.annotation.Request;
import com.lizard.schedule.net.http.request.bean.base.BaseRequest;
import com.lizard.schedule.net.http.response.bean.ScheduleSyncResponse;

import java.util.List;

/**
 *  计划同步请求
 */
@Request(url = HttpConst.HTTP_DOMAIN + HttpConst.HTTP_PATH_SYNC,
        debugUrl = HttpConst.HTTP_DOMAIN_DEBUG + HttpConst.HTTP_PATH_SYNC,
        method = Request.Method.POST,
        responseClazz = ScheduleSyncResponse.class)
public class ScheduleSyncRequest extends BaseRequest {

        /**
         * 客户端最新的计划版本号
         */
        private int pversion;

        /**
         * 需要同步的计划列表
         */
        private List<ScheduleSyncItem> list;

        public int getPversion() {
                return pversion;
        }

        public void setPversion(int pversion) {
                this.pversion = pversion;
        }

        public List<ScheduleSyncItem> getList() {
                return list;
        }

        public void setList(List<ScheduleSyncItem> list) {
                this.list = list;
        }
}
